package com.westos.userauth.dao;

import com.westos.userauth.domain.Party;
import com.westos.userauth.domain.PartyAttribute;
import com.westos.userauth.domain.Person;
import com.westos.userauth.dto.PartySearchDto;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface PartyDao {
    /** 设置状态码
     * */
    int updatePartyByStatus(@Param("party") Party party, @Param("status") String status);

    List<Party> queryAll(PartySearchDto partySearchDto);

    Party queryPartyByPartyId(String partyId);

    int deletePartyByPartyId(String partyId);

    int updatePartyAttribute(PartyAttribute partyAttribute);

    int removePartyAttribute(PartyAttribute partyAttribute);

    List<Party> lookupParty(PartySearchDto partySearchDto);

    Party findPartiesById(String id);
    
    int insertParty(Party party);
}
